<#import "/spring.ftl" as spring/>
<html>
	<head>
		<title>springmvc+freemarker 测试文件</title>
		<link rel="stylesheet" type="text/css"
			href="/${base}/${resources}/js/extjs3.3.1/resources/css/ext-all.css" />

		<script type="text/javascript" src="/${base}/${resources}/js/extjs3.3.1/adapter/ext/ext-base.js" ></script>
		<script type="text/javascript" src="/${base}/${resources}/js/extjs3.3.1/ext-all.js" ></script>
		<script type="text/javascript">
			Ext.onReady(function() {
				var win = new Ext.Window( {
					applyTo:'hello-win',
					title : "hello",
					plain: true,
					width : 500,
					height : 300,
					maximizable:true,
					collapsible:true,
					tbar:[{text:"添加"},"-",{text:"修改"},"-",{text:"删除"}],
					buttons:[{text:"按钮1"},{text:"按钮2"}],
					items:[{xtype:"treepanel", root:{
				        text: 'Ext JS',
				        draggable: false,
        				id: 'source',
        				children: [{
			                text: 'Menu Option 1',
			                leaf: true
			            }, {
			                text: 'Menu Option 2',
			                leaf: true
			            }, {
			                text: 'Menu Option 3',
			                leaf: true
			            }]
        				}
					},{xtype:"htmleditor",renderTo:Ext.get(win)}]
				});
				var win2 = new Ext.Window({
					applyTo:"ext-win",
					plain: true,
					width : 400,
					height : 300,
					title:"load",
					autoLoad:"/${base}/ext"
				});
				win.show();
				win2.show();
			});
		</script>
	</head>
	<body>
	<div id="hello-win"></div>
	<div id="ext-win"></div>
	<form id="form" action="" method="post">
		姓名：
		<input id="name" name="name" type="text" value="${name!""}"/>
		<br>
		年龄：
		<input id="age" name="age" type="text" />
		<br>
		生日：
		<input id="birthday" name="birthday" type="text" />
		<br>
		性别：
		<select id="sex" name="sex">
			<option value="0">
				男
			</option>
			<option value="1">
				女
			</option>
		</select>
		<br>
		<input type="submit" value="提交" />
	</form>
	</body>
</html>